home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / p22v12.zip / FORMAT.P22 < prev    next >
Text File  |  1991-05-12  |  841b  |  22 lines

  1. ; Make format bleep twice when finished:
  2. ; Execute as
  3. ; C:\DOS>patch22 @format.p22
  4. ;
  5. ;
  6. format.com *1?another (Y/N)\??another Y/N\?\x7\x7?
  7. ;
  8. ; this is achieved by replacing the text
  9. ;        another (Y/N)?
  10. ; with
  11. ;        another Y/N?bb            (where b stands for the bleep)
  12. ; Note:
  13. ; - The new text must have the same length as the old text.
  14. ;   (these are null-terminated strings, and the ending \0 must not be
  15. ;   overwritten).
  16. ; - The bleep is \x7 (hexadecimal 7, which is decimal 7).
  17. ; - The ? character in the text is written as \?, otherwise it would
  18. ;   have been interpreted as the end of the text.
  19. ; - Were the patched to be performed on the command line, it would
  20. ;   have to be enclosed in double quotes, to make it into one string:
  21. ;   C:\DOS>patch22 format.com "*1?another (Y/N)\??another Y/N\?\x7\x7?"
  22.